Skip to content

Conversation

@krishnprakash
Copy link
Owner

Potential fix for https://github.com/krishnprakash/cloudflare-docs/security/code-scanning/3

To fix the problem, we need to avoid logging sensitive information such as client_id and client_secret. Instead, we can log a message indicating that the service token was created without including the sensitive details. This way, we maintain the functionality of informing the user about the creation of the service token without exposing sensitive data.

  • Modify the log message on line 150 to exclude client_id and client_secret.
  • Ensure that the new log message still provides useful information without compromising security.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…nsitive information

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Phileco <[email protected]>
@krishnprakash krishnprakash marked this pull request as ready for review May 21, 2025 05:17
@krishnprakash krishnprakash merged commit 172fe46 into production May 21, 2025
9 checks passed
@krishnprakash krishnprakash deleted the alert-autofix-3.1.1 branch May 21, 2025 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants